<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>登录-SAAS云检测系统</title>
    <!--<meta http-equiv="Content-Type" content="multipart/form-data;charset=UTF-8">-->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" th:href="@{/static/layui/css/layui.css}" media="all"/>
    <link rel="stylesheet" th:href="@{/static/admin/css/login.css}" media="all"/>
</head>

<body>
<div class="video_mask"></div>
<div class="login" style="min-height: 350px;height: auto">
    <h1>SAAS-用户登录</h1>
    <form class="layui-form"  th:action="@{/admin/login}" th:method="post" enctype="multipart/form-data;charset=UTF-8">
        <div class="layui-inline">
            <label class="layui-form-label" style="font-size: large;color: white">选择请求:</label>
            <div class="layui-input-inline">
                <select id="init"  name="roleId" lay-filter="selected" lay-verify="required" lay-search="">
                    <option class="init"  value="1">直接选择或搜索选择</option>
                    <div id="requestLoad" th:each="aim : ${session.roleList}">
                        <option th:value="${aim.id}" th:text="${aim.name}"></option>
                    </div>
                </select>
            </div>
        </div>
        <hr/>

        <div  id="insertForm">


        </div>
        <div class="layui-form-item"><input class="layui-input" name="password" placeholder="密码" lay-verify="required" type="password"
                                            autocomplete="off"></div>
        <div class="layui-form-item form_code">
            <input class="layui-input" name="code" placeholder="验证码" lay-verify="required" type="text" autocomplete="off">
            <div class="code"><img th:src="@{/getCaptcha}" width="116" height="36" th:id="randImage"></div>
        </div>
        <div class="layui-form-item" hidden>
            <input type="checkbox" name="rememberMe" lay-skin="primary" title="记住帐号?">
        </div>
        <div class="layui-form-item loginBut" style="margin-top: 10px">
            <button class="layui-btn login_btn" lay-submit lay-filter="login" >登录</button>
        </div>

    </form>
    <div class="layui-input-inline registBut" style="margin-top: 10px">
        <button class="layui-btn" style="width:100%;" id="regist">注册</button>
    </div>
</div>
<script type="text/javascript" th:src="@{/static/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/static/admin/js/login.js}"></script>
</body>
</html>